package com.baox.agridata.synchronous.service.shanxi.impl;

import com.baox.agridata.synchronous.dao.shanxi.TCCPAMapper;
import com.baox.agridata.synchronous.entity.quanguo.Jyzdds;
import com.baox.agridata.synchronous.entity.quanguo.Jyzscpb;
import com.baox.agridata.synchronous.entity.shanxi.TCCPAEntity;
import com.baox.agridata.synchronous.service.shanxi.TCCPAService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TCCPAServiceImpl implements TCCPAService {

    @Autowired
    private TCCPAMapper tccpaMapper;


    @Override
    public TCCPAEntity selectProductAByMid(String mid) {
        return tccpaMapper.selectProductAByMid(mid);
    }

    @Override
    public TCCPAEntity selectProductAByFactoryCode(String factoryCode) {
        return tccpaMapper.selectProductAByFactoryCode(factoryCode);
    }

    @Override
    public Integer updateTCCPAInfo(String StatusJson, String mid, Integer Status) {
        return tccpaMapper.updateTCCPAInfo(StatusJson, mid, Status);
    }

    @Override
    public List<Jyzscpb> getLocalPCAAList(String startTime, String endTime, String factoryCode) {
        return tccpaMapper.getLocalPCAAList(startTime, endTime, factoryCode);
    }

    @Override
    public List<Jyzdds> selectJyzDDsFromTCCPA(String createTime) {
        return tccpaMapper.selectJyzDDsFromTCCPA(createTime);
    }
}
